//连接mongoose
var mongoose = require('mongoose');


// 创建骨架
const cart = mongoose.Schema({  
  username:String,
  shops:Array,
  nopaidorder:Array,
  paidorder:Array
 
})

// 创建模型
const cartSchema = mongoose.model('carts', cart);

module.exports = cartSchema;